Skip to content

fix: fall back gracefully when build symlink creation fails - #3339

Merged
StefanStojanovic merged 1 commit into
nodejs:mainfrom
JaneaSystems:issue-3317
Aug 3, 2026
Merged

fix: fall back gracefully when build symlink creation fails#3339
StefanStojanovic merged 1 commit into
nodejs:mainfrom
JaneaSystems:issue-3317

Conversation

@PickBas

@PickBas PickBas commented Jul 3, 2026

Copy link
Copy Markdown
Contributor
Checklist
  • npm install && npm run lint && npm test passes
  • tests are included
  • commit message follows commit guidelines
Description of change

On filesystems without symlink support (e.g. FAT), node-gyp build aborts with EPERM: ... symlink when creating build/node_gyp_bins/python3. This wraps the symlink creation in a try/catch: on a filesystem-limitation error it warns and continues without the symlink; any other error still propagates.
PATH is only modified after the symlink succeeds, so a failed attempt leaves no half-state behind.

Fixes: #3317

Fixes: nodejs#3317
Signed-off-by: Kirill Saied <sayed.kirill@gmail.com>
@StefanStojanovic
StefanStojanovic merged commit eae161f into nodejs:main Aug 3, 2026
38 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Build fails on filesystems that don't support symlinks

2 participants